<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>计划分析页面</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: "Microsoft YaHei", sans-serif;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Crect fill='%230f1c3c' width='100' height='100'/%3E%3Cpath fill='%231a2d5a' d='M0 0h100v100H0z'/%3E%3C/svg%3E") repeat;
            color: #e0e0e0;
            line-height: 1.15;
            padding: 20px;
        }

        .container {
            max-width: 1920px;
            margin: 0 auto;
            background: rgba(22, 40, 75, 0.7);
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }

        .page-title {
            text-align: center;
            color: #4fc3f7;
            font-size: 28px;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 1px solid #2a4a7c;
        }

        /* 数据展示块样式 - 优化布局 */
        .stats-section {
            margin-bottom: 40px;
        }

        .stats-row {
            display: flex;
            width: 100%;
            gap: 30px;
            margin-bottom: 30px;
        }

        .stat-group {
            flex: 1;
            display: flex;
            gap: 20px;
            position: relative;
            padding: 20px;
            background: rgba(30, 60, 114, 0.3);
            border-radius: 8px;
            border: 1px solid rgba(79, 195, 247, 0.3);
        }

        .stat-group::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, #4fc3f7, #1976d2);
            border-radius: 4px 4px 0 0;
        }

        .group-title {
            position: absolute;
            top: -12px;
            left: 20px;
            background: rgba(30, 60, 114, 0.9);
            padding: 4px 12px;
            border-radius: 4px;
            color: #81d4fa;
            font-size: 16px;
            font-weight: 600;
            border: 1px solid rgba(79, 195, 247, 0.5);
        }

        .stat-card {
            flex: 1;
            background: rgba(30, 60, 114, 0.7);
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            border: 1px solid #3a5f9a;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
            border-color: #4fc3f7;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, #4fc3f7, #1976d2);
        }

        .card-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .card-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            background: rgba(79, 195, 247, 0.1);
            color: #4fc3f7;
            font-size: 20px;
        }

        .card-title {
            font-size: 18px;
            color: #81d4fa;
            font-weight: 600;
        }

        .main-value {
            font-size: 32px;
            font-weight: bold;
            color: #4fc3f7;
            margin-bottom: 10px;
        }

        .value-unit {
            font-size: 16px;
            color: #bbdefb;
            margin-left: 5px;
        }

        .card-description {
            color: #bbdefb;
            font-size: 14px;
            margin-bottom: 15px;
        }

        .progress-bar {
            height: 8px;
            background: rgba(42, 74, 124, 0.5);
            border-radius: 4px;
            margin-bottom: 10px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #4fc3f7, #1976d2);
            border-radius: 4px;
        }

        .card-footer {
            font-size: 14px;
            color: #81d4fa;
        }

        /* 图表区域样式 */
        .charts-row {
            display: flex;
            gap: 30px;
            margin-bottom: 40px;
        }

        .chart-container {
            flex: 1;
            background: rgba(30, 60, 114, 0.5);
            border-radius: 8px;
            padding: 20px;
            border: 1px solid #3a5f9a;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            height: 400px;
        }

        .chart-title {
            color: #81d4fa;
            font-size: 18px;
            margin-bottom: 15px;
            text-align: center;
        }

        .chart-placeholder {
            width: 100%;
            height: 340px;
            background: linear-gradient(45deg, #1a3a6b, #2a4a7c);
            border-radius: 6px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #bbdefb;
            font-size: 16px;
        }

        /* 底部多图表区域 */
        .multi-charts-row {
            display: flex;
            gap: 30px;
        }

        .multi-chart-container {
            flex: 1;
            background: rgba(30, 60, 114, 0.5);
            border-radius: 8px;
            padding: 20px;
            border: 1px solid #3a5f9a;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            height: 500px;
            display: flex;
            flex-direction: column;
        }

        .multi-chart-title {
            color: #81d4fa;
            font-size: 16px;
            margin-bottom: 15px;
            text-align: center;
        }

        .multi-chart-content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .chart-divider {
            height: 1px;
            background: repeating-linear-gradient(90deg, #3a5f9a, #3a5f9a 10px, transparent 10px, transparent 20px);
            margin: 15px 0;
        }

        .chart-half {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .half-chart-title {
            color: #bbdefb;
            font-size: 14px;
            text-align: center;
            margin-bottom: 10px;
        }

        .half-chart-placeholder {
            flex: 1;
            background: linear-gradient(45deg, #1a3a6b, #2a4a7c);
            border-radius: 6px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #bbdefb;
            font-size: 14px;
        }

        /* 响应式设计 */
        @media (max-width: 1400px) {
            .stats-row {
                flex-direction: column;
            }

            .charts-row, .multi-charts-row {
                flex-direction: column;
            }
        }

        @media (max-width: 768px) {
            .stat-group {
                flex-direction: column;
            }

            .stat-card {
                width: 100%;
            }
        }
    </style>
</head>
<body>
<div class="container">
    <h1 class="page-title">计划分析</h1>

    <!-- 第一部分：数据展示块 -->
    <div class="stats-section">
        <div class="stats-row">
            <!-- 第一组：一级采购计划 -->
            <div class="stat-group">
                <div class="group-title">一级采购计划</div>

                <div class="stat-card">
                    <div class="card-header">
                        <div class="card-icon">
                            <i class="fas fa-chart-line"></i>
                        </div>
                        <div class="card-title">项目数</div>
                    </div>
                    <div class="main-value">1,245<span class="value-unit">项</span></div>
                    <div class="card-description">一级采购计划项目总数</div>
                    <div class="progress-bar">
                        <div class="progress-fill" style="width: 78%"></div>
                    </div>
                    <div class="card-footer">完成率 78%</div>
                </div>

                <div class="stat-card">
                    <div class="card-header">
                        <div class="card-icon">
                            <i class="fas fa-shopping-cart"></i>
                        </div>
                        <div class="card-title">金额</div>
                    </div>
                    <div class="main-value">892.36<span class="value-unit">亿元</span></div>
                    <div class="card-description">一级采购计划总金额</div>
                    <div class="progress-bar">
                        <div class="progress-fill" style="width: 65%"></div>
                    </div>
                    <div class="card-footer">同比增长 7.2%</div>
                </div>
            </div>

            <!-- 第二组：二级采购计划 -->
            <div class="stat-group">
                <div class="group-title">二级采购计划</div>

                <div class="stat-card">
                    <div class="card-header">
                        <div class="card-icon">
                            <i class="fas fa-chart-bar"></i>
                        </div>
                        <div class="card-title">项目数</div>
                    </div>
                    <div class="main-value">3,587<span class="value-unit">项</span></div>
                    <div class="card-description">二级采购计划项目总数</div>
                    <div class="progress-bar">
                        <div class="progress-fill" style="width: 82%"></div>
                    </div>
                    <div class="card-footer">完成率 82%</div>
                </div>

                <div class="stat-card">
                    <div class="card-header">
                        <div class="card-icon">
                            <i class="fas fa-money-bill-wave"></i>
                        </div>
                        <div class="card-title">金额</div>
                    </div>
                    <div class="main-value">1,567.89<span class="value-unit">亿元</span></div>
                    <div class="card-description">二级采购计划总金额</div>
                    <div class="progress-bar">
                        <div class="progress-fill" style="width: 71%"></div>
                    </div>
                    <div class="card-footer">同比增长 9.5%</div>
                </div>
            </div>
        </div>
    </div>

    <!-- 第二部分：图表区域 -->
    <div class="charts-row">
        <div class="chart-container">
            <div class="chart-title">近三年计划数据</div>
            <div class="chart-placeholder">柱状图区域 - 近三年采购计划对比分析</div>
        </div>
        <div class="chart-container">
            <div class="chart-title">连续12个月计划数据</div>
            <div class="chart-placeholder">折线图区域 - 月度采购计划趋势分析</div>
        </div>
    </div>

    <!-- 第三部分：多图表区域 -->
    <div class="multi-charts-row">
        <div class="multi-chart-container">
            <div class="multi-chart-title">采购品类分布</div>
            <div class="multi-chart-content">
                <div class="chart-half">
                    <div class="half-chart-title">一级采购品类分布</div>
                    <div class="half-chart-placeholder">饼图区域 - 一级采购品类占比</div>
                </div>
                <div class="chart-divider"></div>
                <div class="chart-half">
                    <div class="half-chart-title">二级采购品类分布</div>
                    <div class="half-chart-placeholder">饼图区域 - 二级采购品类占比</div>
                </div>
            </div>
        </div>

        <div class="multi-chart-container">
            <div class="multi-chart-title">采购方式分析</div>
            <div class="multi-chart-content">
                <div class="chart-half">
                    <div class="half-chart-title">招标方式分布</div>
                    <div class="half-chart-placeholder">饼图区域 - 招标方式占比</div>
                </div>
                <div class="chart-divider"></div>
                <div class="chart-half">
                    <div class="half-chart-title">非招标方式分布</div>
                    <div class="half-chart-placeholder">饼图区域 - 非招标方式占比</div>
                </div>
            </div>
        </div>

        <div class="multi-chart-container">
            <div class="multi-chart-title">区域采购分析</div>
            <div class="multi-chart-content">
                <div class="chart-half">
                    <div class="half-chart-title">区域采购金额分布</div>
                    <div class="half-chart-placeholder">饼图区域 - 区域采购金额占比</div>
                </div>
                <div class="chart-divider"></div>
                <div class="chart-half">
                    <div class="half-chart-title">区域采购项目分布</div>
                    <div class="half-chart-placeholder">饼图区域 - 区域采购项目占比</div>
                </div>
            </div>
        </div>

        <div class="multi-chart-container">
            <div class="multi-chart-title">时间分布分析</div>
            <div class="multi-chart-content">
                <div class="chart-half">
                    <div class="half-chart-title">季度采购分布</div>
                    <div class="half-chart-placeholder">饼图区域 - 季度采购占比</div>
                </div>
                <div class="chart-divider"></div>
                <div class="chart-half">
                    <div class="half-chart-title">月度采购分布</div>
                    <div class="half-chart-placeholder">饼图区域 - 月度采购占比</div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    // 这里可以添加图表初始化代码
    // 当这个页面整合到智慧中枢时，会使用相同的ECharts初始化逻辑
    console.log("计划分析页面加载完成");
</script>
</body>
</html>